package com.xcdh.trading.task;

import cn.hutool.core.date.DateUtil;
import com.xcdh.trading.service.MskTweetService;
import com.xcdh.trading.service.QQEmailService;
import com.xcdh.trading.service.TweetService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.Date;

@Component
public class TweetTask {
    @Autowired
    private TweetService tweetService ;

    @Scheduled(cron = "0 */1 * * * ?")
    public void start(){
        System.out.println("任务启动");
        tweetService.syncMskMskTweet();
    }
}
